import request from '@/utils/request'

// 查询充值方案列表
export function listPayRechargePlan(query) {
  return request({
    url: '/system/payRechargePlan/list',
    method: 'get',
    params: query
  })
}

// 查询充值方案详细
export function getPayRechargePlan(id) {
  return request({
    url: '/system/payRechargePlan/' + id,
    method: 'get'
  })
}

// 新增充值方案
export function addPayRechargePlan(data) {
  return request({
    url: '/system/payRechargePlan',
    method: 'post',
    data: data
  })
}

// 修改充值方案
export function updatePayRechargePlan(data) {
  return request({
    url: '/system/payRechargePlan',
    method: 'put',
    data: data
  })
}

// 删除充值方案
export function delPayRechargePlan(id) {
  return request({
    url: '/system/payRechargePlan/' + id,
    method: 'delete'
  })
}
